
const templateStr=`

    <head>
	<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3419308738737930"
	     crossorigin="anonymous"></script>
        <meta charset="utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta http-equiv="Cache-Control" content="no-siteapp"/>
		<meta name="description" content="{{seoDescription}}">
		<meta name="keywords" content="{{seoKeywords}}">
		<meta name="author" content="{{seoAuthor}}">
		<meta name="robots" content="index, follow">
		  
		
        <title>{{title}}</title>
        <link rel="stylesheet" href="https://lqcpws.cn/tools/js/editormd/css/style.css" />
        <link rel="stylesheet" href="https://lqcpws.cn/tools/js/editormd/css/editormd.preview.min.css" />
		<script src="https://lqcpws.cn/tools/js/watermark.min.js"><\/script>
     <style>
        
        </style>
    </head>
    <body>
        <div style="margin: auto; width: 50%;" >
          
            <div id="editormd-view">
               <textarea style="display:none;">###Hello world!</textarea>               
            </div>
            
        </div>
\
        <script src="https://lqcpws.cn/tools/js/jquery.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/marked.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/prettify.min.js"><\/script>
        
        <script src="https://lqcpws.cn/tools/js/editormd/lib/raphael.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/underscore.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/sequence-diagram.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/flowchart.min.js"><\/script>
        <script src="https://lqcpws.cn/tools/js/editormd/lib/jquery.flowchart.min.js"><\/script>

        <script src="https://lqcpws.cn/tools/js/editormd/editormd.js"><\/script>
        <script type="text/javascript">
            $(function() {
				$.ajax({
					type: 'get',
					url: "https://api.lqcpws.cn/pc/requestCountByDay",
					success: function(res) {
				
				
					}
				
				
				})
                var editormdView
                              $.get("{{mdText}}", function(markdown) {
        
                    
				    editormdView = editormd.markdownToHTML("editormd-view", {
                        markdown        : markdown ,
                        htmlDecode      : true,       // 开启 HTML 标签解析，为了安全性，默认不开启
                        htmlDecode      : "style,script,iframe",  // you can filter tags decode
                        toc             : true,
                        tocm            : true,    // Using [TOCM]
                        emoji           : true,
                        taskList        : true,
                        tex             : true,  // 默认不解析
                        flowChart       : true,  // 默认不解析
                        sequenceDiagram : true,  // 默认不解析
                    });
                    
          
            });
            
            });
			
		if({{watermark}}){
			const watermarkInstance = new WaterMark({
							// 文字大小
							size: '35px',
							// 字体颜色
							color: '#e1e1e1',
							// 生成的 id
							id: 'watermark',
							// 指纹间距
							density: 200,
							// 不支持canvas的提示
							tip: '你的浏览器不支持Canvas'
						});
			watermarkInstance.render("{{watermarkText}}");
		}
        <\/script>

`